package cn.wangkai.peanut.db.iface;

import java.sql.Connection;
import java.sql.SQLException;

import cn.wangkai.peanut.db.WKDbException;

public interface IMyDb {
	/**
	 * 关闭连接
	 * @param conn 数据库连
	 */
	public void Close();

	public void BeginTransaction();


	public Boolean getTransaction();

	public void Commit();

	public void Rollback();

	public void setDb(IDb db) throws WKDbException ;

	public IDb getDb();

	public Connection getConnection() throws WKDbException, SQLException;
	
	public Connection getConn();
}
